<%--
  Created by IntelliJ IDEA.
  User: 13095
  Date: 2024/9/19
  Time: 11:38
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html; charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set value="${pageContext.request.contextPath}" var="path"></c:set>
<html>
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
    <link rel="stylesheet" href="${path}/static/css/login.css">
</head>
<body>
<div class="container">
    <div class="card">
        <h1>用户登录</h1>
        <c:if test="${not empty requestScope.error}">
            <div class="error-message">
                <span class="error-icon" style="color:red;">&#9888; ${requestScope.error}</span>
            </div>
        </c:if>
        <form action="${path}/user/login" method="post">
            <label>手机号:</label>
            <input type="text" name="phone_number" required>

            <label>密码:</label>
            <input type="password" name="password" required>

            <input type="submit" value="登录">
        </form>
        <div class="footer">
            <p>还没有账号？ <a href="${path}/user/register">注册</a></p>
        </div>
    </div>
</div>
</body>
</html>